//获取地址栏上的商品id
let url = window.location.href.split("/");
let pdId = url[url.length-1];
console.log(pdId)
let comment_box= new Vue({
    el:"#comment_box",
    data:{
        commentInfo:[]
    },
    methods: {

    },
    created: function (){
        //let pdId = document.querySelector("#pdd").innerText;
        axios.post("/shoppingsingle/selectComment",{
            "pdId":pdId
        }).then(function (response){
            comment_box.commentInfo=response.data
        })
    }
})